﻿@using System.Collections.Generic
@model System.Collections.ArrayList
@{
    Layout = null;
}
@{
    var Gold = 0;
    var Num = 0;
    var Count = 0;
    var id = 0;
}


<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0076)order/confirm.htm?stockoutGifts=&0.01905577117577195 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="Expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Pragma" content="no-cache" />
    <title>订单结算-酒帝网</title>
    <link href="~/css/Indent_css/base.css" rel="stylesheet" />
    <link href="~/css/Indent_css/footer.css" rel="stylesheet" />
    <link href="~/css/Indent_css/header_cart_new.css" rel="stylesheet" />
    <link href="~/css/Indent_css/order.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
</head>
<body>
    <div id="nTalk_post_hiddenElement" style="left: -10px; top: -10px; visibility: hidden; display: none; width: 1px; height: 1px;"></div>
    <script type="text/javascript">
    //获取区域ID并存储到Cookie
    $(function () {
        var arrStr = document.cookie.split("; ");
        for (var i = 0; i < arrStr.length; i++) {
            var temp = arrStr[i].split("=");
            if (temp[0] == "UsersName") {
                if (unescape(temp[1]) != "") {
                    $("#UsersName123").html(unescape(temp[1]));
                }
                else {
                    alert("请先登陆！！！")
                    location.href = "/Home/Login";
                }
            }
        }
        for (var i = 0; i < arrStr.length; i++) {
            var temp = arrStr[i].split("=");
            if (temp[0] == "UsersID") {
                if (unescape(temp[1]) != "") {
                    $("#MyOrder1").attr("href", "/Home/MyOrder/" + unescape(temp[1]));
                    $("#MyCar1").attr("href", "/Home/Shop/" + unescape(temp[1]));
                }
                else {
                    alert("请先登陆！！！")
                    location.href = "/Home/Login";
                }
            }
        }
    })
    var header1200 = ""; var header1000 = "";
    header1200 = "";
    header1000 = "";
    </script>
    <div class="topHeaderWrap">
        <div class="topHeader">
            <div class="topCollect">
                <ul>
                    <li name="_login_status_panel"><span><span class="userName" title="jxw54339495" id="UsersName123"></span><span>，欢迎光临！[<a href="#">退出</a>]</span></span><i></i></li>
                </ul>
            </div>
            <div class="topRight">
                <ul>
                    <li><a class="myOrder" target="_blank" href="#" id="MyOrder1">我的订单</a><i></i></li>
                    <li><a class="userCenter" target="_blank" href="/Home/Index">我的酒帝网</a><i></i></li>
                    <li class="hotTel"><span>客服热线</span><strong>18511864537</strong></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="midHeader">
        <div class="midHeaderBox">
            <div class="jxwLogo"><p style="background:url(../../img/Login_img/logo.png) no-repeat;" class="jxwIndex"><a href="/Home/Index"></a></p></div>
            <div class="bayProcess">
                <div class="proPic"></div>
                <div class="proTex"><span class="on">我的购物车</span><span class="on2">确认订单信息</span><span class="on3">成功提交订单</span></div>
            </div>
        </div>
    </div>
    <!--页头end-->
    <!--易博DSP埋码-->
    <input type="hidden" id="lastAddressID" value="108136385" />
    <input type="hidden" id="defAddressID" value="" />
    <div class="cartWrap">
        <div class="orderInfo">
            <div class="orderItemsBox orderAddress">
                <div class="itemsTitle"><b>收货地址</b><a href="#" class="addNewAdd" style="" onclick="addrShow()">使用新地址</a></div>
                <div class="itemsWrap">
                    <ul class="addressList clearfix"><div id="Consigness1"></div><li class="add" onclick="addrShow()"><div class="address-add"><i class="oIcon"></i><span>增加新地址</span></div></li></ul>
                    <div class="addOpenBox"><span class="addressOpen" style="display: none;"><b>展开</b><i class="oIcon"></i></span></div>
                </div>
                <script>
                    var AddrID;
                    var Uid=0;
                    var IndentNumber;
                    var PayMent=1;
                    var LeaveWord="无";
                    var Express;
                    var InventoryID;
                    function addrShow()
                    {
                        $(".addresPopBox").css("display", "block");
                        $(".popMask").css("display", "block")
                        $("#AddorEdit").attr("onclick","Consignees_Add()");
                    }
                    function addrClose() {
                        $(".addresPopBox").css("display", "none");
                        $(".popMask").css("display", "none");
                    }
                    function Consignees_Del(ConsigneeID)
                    {
                        if(confirm("确定要删除么"))
                        {
                            $.ajax({
                                type:"post",
                                url:"/Home/Consignees_Del",
                                data:{ConsigneeID:ConsigneeID},
                                success:function(dd){
                                    if(dd>0)
                                    {
                                        alert("删除成功");
                                        location.href="/Home/Indent/"+Uid;
                                    }
                                    else
                                    {
                                        alert("当前网络原因，请稍后重试！！！")
                                    }
                                }
                            })
                        }
                        
                    }
                    function AddrChange(UsersID,Aid)
                    {
                        $("#Consigness1").empty();
                        $.ajax({
                            type: "post",
                            url: "/Home/Consignees_Show",
                            data: { UsersID: UsersID },
                            success: function (dd) {
                                $(dd).each(function (i, item) {
                                    if (i == Aid) {
                                        AddrID = item["ConsigneeID"];
                                        var str = '<li onclick="AddrChange('+UsersID+','+i+')" class="item on" einv="false"><input type="hidden" value="' + item["ConsigneeID"] + '" addressname="' + item["ConsigneeAddr"] + '" regionid="398"><div class="address-tit"><b>' + item["ConsigneeName"] + '</b><span>' + item["ConsigneeTel"] + '</span></div><div class="address-con">' + item["ConsigneeAddr"] + '</div><div class="address-ope"><a class="addAlter" href="#" _di="108136385" onclick="Consignees_Edit('+item["ConsigneeID"]+')">修改</a><a class="addDelete" href="#" _di="108136385" onclick="Consignees_Del('+item["ConsigneeID"]+')">删除</a></div><div class="defaultBtn" _di="108136385">设为默认地址</div><div class="addDefault oIcon"></div></li>'
                                        $("#Consigness1").append(str);

                                    }
                                    else {
                                        var str = '<li onclick="AddrChange(' + UsersID + ',' + i + ')" class="item" einv="false"><input type="hidden" value="' + item["ConsigneeID"] + '" addressname="' + item["ConsigneeAddr"] + '" regionid="398"><div class="address-tit"><b>' + item["ConsigneeName"] + '</b><span>' + item["ConsigneeTel"] + '</span></div><div class="address-con">' + item["ConsigneeAddr"] + '</div><div class="address-ope"><a class="addAlter" href="#" _di="108136385" onclick="Consignees_Edit('+item["ConsigneeID"]+')">修改</a><a class="addDelete" href="#" _di="108136385" onclick="Consignees_Del('+item["ConsigneeID"]+')">删除</a></div></li>'
                                        $("#Consigness1").append(str);
                                    }

                                })
                            }
                        })
                    }
                    $(function () {
                        var UsersID = 0;
                        var arrStr = document.cookie.split("; ");
                        for (var i = 0; i < arrStr.length; i++) {
                            var temp = arrStr[i].split("=");
                            if (temp[0] == "UsersID") {
                                if (unescape(temp[1]) != "") {
                                    UsersID = unescape(temp[1])
                                    Uid=unescape(temp[1])
                                }
                            }
                        }
                        if (UsersID == 0) {
                            alert("请先登录");
                            location.href = "/Home/Login";
                        }
                        else {
                            $("#Consigness1").empty();
                            $.ajax({
                                type: "post",
                                url: "/Home/Consignees_Show",
                                data: { UsersID: UsersID },
                                success: function (dd) {
                                    $(dd).each(function (i, item)
                                    {
                                        if (i == "0") {
                                            AddrID = item["ConsigneeID"];
                                            var str = '<li onclick="AddrChange(' + UsersID + ',' + i + ')" class="item on" einv="false"><input type="hidden" value="' + item["ConsigneeID"] + '" addressname="' + item["ConsigneeAddr"] + '" regionid="398"><div class="address-tit"><b>' + item["ConsigneeName"] + '</b><span>' + item["ConsigneeTel"] + '</span></div><div class="address-con">' + item["ConsigneeAddr"] + '</div><div class="address-ope"><a class="addAlter" href="#" _di="108136385" onclick="Consignees_Edit('+item["ConsigneeID"]+')">修改</a><a class="addDelete" href="#" _di="108136385" onclick="Consignees_Del('+item["ConsigneeID"]+')">删除</a></div><div class="defaultBtn" _di="108136385">设为默认地址</div><div class="addDefault oIcon"></div></li>'
                                            $("#Consigness1").append(str);

                                        }
                                        else {
                                            var str = '<li onclick="AddrChange(' + UsersID + ',' + i + ')" class="item" einv="false"><input type="hidden" value="' + item["ConsigneeID"] + '" addressname="' + item["ConsigneeAddr"] + '" regionid="398"><div class="address-tit"><b>' + item["ConsigneeName"] + '</b><span>' + item["ConsigneeTel"] + '</span></div><div class="address-con">' + item["ConsigneeAddr"] + '</div><div class="address-ope"><a class="addAlter" href="#" _di="108136385" onclick="Consignees_Edit('+item["ConsigneeID"]+')">修改</a><a class="addDelete" href="#" _di="108136385" onclick="Consignees_Del('+item["ConsigneeID"]+')">删除</a></div></li>'
                                            $("#Consigness1").append(str);
                                        }
                                    })
                                }
                            })
                        }
                    })

                </script>
            </div>
            <div class="orderItemsBox orderPayment">
                <div class="itemsTitle"><b>支付方式</b></div>
                <div class="itemsWrap">
                    <ul class="paymentList">
                        <li><label><input name="sel_pay" type="radio" value="1" _ind="0" id="huodaofukuan" onchange="PaymentStart(0)" /><span class="listTitle">货到付款</span></label><span class="listPro">送货上门后再付款，使用现金或刷银行卡，免手续费。</span><em class="conPro03" style="display: none;">所选商品不支持货到付款！</em></li>
                        <li><label><input name="sel_pay" type="radio" value="2" _ind="1" checked="checked" class="zhifu" id="zhifu" onchange="PaymentStart(1)" /><span class="listTitle">在线支付</span></label><span class="listPro">支持多家银行借记卡、信用卡支付；支持支付宝、微信、财付通等多种支付平台。</span></li>
                        <li id="aliBill" style="display:none"><label><input name="sel_pay" type="radio" value="4" id="aliBillPay" /><span class="listTitle">支付宝扫码支付</span></label><span class="listPro">送货上门后支付宝钱包扫码支付。</span><a target="_blank" href="topic/zfbhdfk/pay.html">如何使用？</a></li>

                    </ul>
                    <input id="payid" type="hidden" value="101" />
                </div>
            </div>
            <script>
                function PaymentStart(start)
                {
                    PayMent=start;
                }
            </script>

            <input type="hidden" id="real-mobile" value="" />

            <div class="popMask" style="display: none; height: 923px;"></div>
            <div class="popBox" style="display:none;">
                <div class="pop-close">X</div>
                <div class="popTop"><h3>验证码</h3></div>
                <div class="popCon">

                    <p class="popItem"><input class="popItem-form" type="text" id="znqVerificationCode" /><img src="~/img/Indent_img/captchaimg.htm" id="captchaImage2" width="80" height="35" /><em>看不清<a href="#" id="_captchaImage2">换一张</a></em></p>
                    <p class="popCode-pro"></p>
                    <p class="popItem"><input class="popCodeBut" type="button" value="提 交" /></p>
                </div>
            </div>


            <div id="goods_list_container">
                <div class="orderItemsBox orderCommodity">
                    <div class="itemsTitle"><b>商品信息</b><a href="/Home/Shop" onclick="">返回购物车</a></div>
                    <div></div>

                    <div class="itemsWrap">
                        <table class="comTable">
                            <thead>
                                <tr>
                                    <th width="460">商品名称</th>
                                    <th width="140">酒帝价</th>
                                    <th width="140">购买数量</th>
                                    <th width="140">库存</th>
                                    <th width="138">小计</th>
                                </tr>
                            </thead>
                            @foreach (Dictionary<string, object> item in Model)
                            {
                                Gold += Convert.ToInt32(Convert.ToDouble(item["GoodsPrice"]) * 0.5) * Convert.ToInt32(@item["GoodsNum"]);
                                Num += Convert.ToInt32(Convert.ToDouble(item["GoodsPrice"]) * Convert.ToDouble(item["GoodsNum"]));
                                Count += Convert.ToInt32(item["GoodsNum"]);
                                id = Convert.ToInt32(item["UsersID"]);
                                <tbody>
                                    <tr>
                                        <td width="542">
                                            <div class="productImg">
                                                <a href="goods-22784.html" target="_blank">
                                                    <img src="~/img/Indent_img/d5222ce1e6d94f93a72a8c23b68200db2.jpg" alt="@item["GoodsName"].ToString() @item["GoodsVolume"].ToString()ml @item["GoodsBox"].ToString()盒装" width="52" height="52" />
                                                </a>
                                            </div>
                                            <div class="productName">
                                                <p class="oneName">
                                                    <a href="goods-22784.html" target="_blank" title="@item["GoodsName"].ToString() @item["GoodsVolume"].ToString()ml @item["GoodsBox"].ToString()盒装">@item["GoodsName"].ToString() @item["GoodsVolume"].ToString()ml @item["GoodsBox"].ToString()盒装</a>
                                                </p>
                                            </div>
                                        </td>
                                        <td width="165" rowspan="1">
                                            <div class="productPriM">￥@item["GoodsPrice"].ToString()</div>
                                        </td>
                                        <td width="130" rowspan="1">
                                            <div class="productNum"><span>@item["GoodsNum"].ToString()</span></div>
                                        </td>
                                        <td width="140" rowspan="1">
                                            <div class="com productStock">
                                                @if (Convert.ToInt32(item["GoodsNum"]) >= 10)
                                                {
                                                    <span>
                                                        有货
                                                    </span>
                                                }
                                                else
                                                {
                                                    <span>
                                                        缺货
                                                    </span>
                                                }
                                            </div>
                                        </td>
                                        <td width="150" rowspan="1" class="bb">
                                            <div class="productPri">￥@Convert.ToInt32(Convert.ToDouble(item["GoodsPrice"]) * Convert.ToDouble(item["GoodsNum"]))</div>
                                        </td>
                                    </tr>
                                </tbody>
                            }
                        </table>
                    </div>





                </div>

                <!---->
                <input type="hidden" name="canUseBonusPrice" id="canUseBonusPrice" value="129.00" />
                <input type="hidden" name="disableCoupon" id="disableCoupon" value="false" />
                <input type="hidden" name="defAddressID" id="defAddressID" value="" />
                <input type="hidden" name="failureMessage" id="failureMessage" value="" />
                <input type="hidden" name="totalPrice" id="totalPrice" value="129.00" />
                <input type="hidden" name="priceCutAmount" id="priceCutAmount" value="0" />
                <input type="hidden" name="expensesPrice" id="expensesPrice" value="0" />
                <input type="hidden" name="isAllExchangeGoods" id="isAllExchangeGoods" value="false" />
                <input type="hidden" name="hasExchangeGoods" id="hasExchangeGoods" value="false" />
                <input type="hidden" name="exchangeGoodsExpensesPrice" id="exchangeGoodsExpensesPrice" value="" />
                <input type="hidden" name="pointsCount" id="pointsCount" value="64" />
                <input type="hidden" name="procount" id="procount" value="1" />
                <input type="hidden" name="productPrice" id="productPrice" value="129.00" />
                <input type="hidden" name="showAddressTips" id="showAddressTips" value="" />
                <input type="hidden" name="hasZnqxgGoods" id="hasZnqxgGoods" value="" />
                <input type="hidden" name="carriageFree" id="carriageFree" value="false" />
                <form name="_orderform" id="_orderform" action="order/submit.htm" method="post">
                    <input type="hidden" name="stockoutGifts" id="stockoutGifts" value="" />
                    <input type="hidden" name="payPrice" id="toPayPrice" value="119.00" />
                    <input type="hidden" name="productAccount" id="productAccount" value="" />	<input type="hidden" name="submitType" id="submitType" value="0" />
                    <input type="hidden" name="addressId" />    <input type="hidden" name="paymentChannel" />	<input type="hidden" name="paymentChannelName" />
                    <input type="hidden" name="useGiftCards" />	<input type="hidden" name="useAccoutMoney" />	<input type="hidden" name="payPassWord" />    <input type="hidden" name="useCashback" />		<input type="hidden" name="useCoupon" />
                    <input type="hidden" name="invoiceType" />    <input type="hidden" name="invoiceTitle" />    <input type="hidden" name="invoiceContent" />	<input type="hidden" name="invoiceMobile" />	<input type="hidden" name="invoiceKinds" />
                    <input type="hidden" name="needAttachedSheet" />    <input type="hidden" name="referrerId" />    <input type="hidden" name="orderPS" />
                    <input type="hidden" name="giftOrder" />	<input type="hidden" name="getGiftName" />	<input type="hidden" name="giveGiftName" />    <input type="hidden" name="giveGiftMobile" />	<input type="hidden" name="message" />	<input type="hidden" name="znqVerificationCode" />
                </form>
                <form name="_orderfailform" id="_orderfailform" action="order/orderfail.htm" method="post">
                    <input type="hidden" name="message" id="message" value="" />
                </form>
                <input type="hidden" id="isDiffentCompartment" value="0" />





            </div>

            <div class="orderItemsBox orderAccount">
                <div class="itemsTitle"><b>结算信息</b></div>
                <div class="itemsWrap">
                    <div class="settlementList">
                        <ul class="accountInfo">
                            <li id="leaveComBox">
                                <div class="settlementWrap"><div class="settlementTitle" id="leaveComments"><i class="oIcon on"></i><span>留言信息</span></div></div>
                                <div class="invoiceWrap" id="liuyanxinxi" style="display:block;">
                                    <div class="invoiceCon invCon03"><div class="paymentWrapLam"><div class="psValBg"><input id="order_PS_VAL" name="order_PS_VAL" maxlength="45" class="form-8" placeholder="请勿填写有关支付、发票、物流配送等信息。谢谢！" /></div><em class="conPro01" style="display: none;">留言含有非法字符</em><em>限45个字</em></div></div>
                                </div>
                            </li>
                            <li class="bb">
                                <div class="comTotalBox">
                                    <p><span><b id="productcount">@Count</b>件商品，商品金额：</span><span class="comTotalSum" id="zje_i">￥@Num</span></p>
                                    <p id="yf_div" style=""><span>运费：</span><span class="comTotalSum" id="yf_i">￥10.00</span></p>
                                    <p id="yh_div" style="display:none"><span style="color:#cc0000">优惠：</span><span class="comTotalSum" id="yh_i"></span></p>
                                    <p id="yhq_div" style=""><span>优惠券：</span><span class="comTotalSum" id="yhq_i">-￥10.00</span></p>
                                    <p id="ye_div" style="display:none"><span>余额：</span><span class="comTotalSum" id="ye_i"></span></p>
                                    <p id="fx_div" style="display:none"><span>返现：</span><span class="comTotalSum" id="fx_i"></span></p>
                                    <p id="lpk_div" style="display:none"><span>礼品卡：</span><span class="comTotalSum" id="lpk_i"></span></p>
                                </div>
                            </li>
                        </ul>
                        <div class="step_offset"></div>
                        <div class="orderTotal" id="orderTotal">
                            <div class="orderTotalCon">
                                <div class="settleGold">共送金币：<span id="jbcount">@Gold</span>个</div>
                                <div class="subBtnBox">
                                    <a href="#" onclick="AddIndent()"><span class="subBtn"><i class="oIcon"></i></span></a>
                                    <div class="submit-pro"></div>
                                </div>
                                <script>
                                    function AddIndent()
                                    {
                                        var Payfreght=10;
                                        var PayDue=@Num+10;
                                        var Total=@Num;
                                        LeaveWord=$("#order_PS_VAL").val();
                                        IndentNumber=9980;
                                        Express="韵达快递";
                                        InventoryID=1;
                                        $.ajax({
                                            type: "post",
                                            url: "/Home/AddIndent",
                                            data: {
                                                UsersID: Uid,
                                                IndentNumber: IndentNumber,
                                                Payfreght: Payfreght,
                                                PayDue: PayDue,
                                                PayMent: PayMent,
                                                LeaveWord: LeaveWord,
                                                Express: Express,
                                                InventoryID: InventoryID,
                                                Total: Total,
                                                ConsigneeID: AddrID
                                            },
                                            success: function (dd)
                                            {
                                                if (dd >0) {
                                                    if(PayMent==0)
                                                    {
                                                        location.href="/Home/Delivery"
                                                    }
                                                    else
                                                    {
                                                        location.href = "/Home/Pay/?Price="+PayDue+"&&id="+IndentNumber;
                                                    }

                                                }
                                                else
                                                {
                                                    alert("当前网络原因，请稍后重试");
                                                    location.href = "/Home/Indent/" + Uid;
                                                }
                                            },
                                            error:function()
                                            {
                                                alert("出错了");
                                            }

                                        })
                                    }
                                </script>
                                <div class="toPay"><strong>应付总金额：</strong><b id="payPrice">￥@Num</b></div>
                            </div>
                        </div>

                    </div>

                </div>



            </div>
        </div>
    </div>
    <div class="pop-modal"></div>
    <div class="pop-wrap pop-wrap1">
        <div class="pop-layer">
            <div class="pop-title">
                <p class="alertTitle">温馨提示</p>
                <i class="popIcon alertClose"></i>
            </div>
            <div class="pop-main">
                <i class="popIcon popType confirm" id="pop-main-i"></i>
                <p><span class="alertContent">该地区于<b class="start"></b>至<b class="end"></b>快递停发，您可以继续下单，我们将会在年后第一时间给您发货!</span></p>
            </div>
            <div class="pop-bottom">
                <span class="confirm alertSure btn1"><b>继续下单</b></span><span class="cancel alertCancel btn2"><b>取消</b></span>
                <span class="confirm alertCancel btn3" style="display:none"><b>确定</b></span>
            </div>
        </div>
    </div>
    <div class="addresPopBox">
        <div class="addresPop">
            <div class="addPopTit"><b></b><strong>新增地址</strong><i class="popClose oIcon" onclick="addrClose()"></i></div>
            <div class="addPopCon">
                <ul>
                    <li><span class="addTit"><i class="xing">*</i>收货人：</span><input name="" type="text" class="addFrom f1 receName" value="" id="ConsigneeName1" a="0" maxlength="10" placeholder="请填写收货人姓名" /></li>
                    <li>
                        <span class="addTit"><i class="xing">*</i>选择地区：</span><select name="new_province" id="new_province"></select>
                        <select name="new_city" id="new_city" class="city"></select>
                        <select name="new_county" id="new_county" class="country"></select><em class="addPro" id="alertstyle2">请输选择地区</em>
                    </li>

                    <li><span class="addTit"><i class="xing">*</i>详细地址：</span><input class="addFrom f2 detailAdd" type="text" maxlength="50" id="new_detail" /><em class="addPro" id="alertstyle3">请填写收货人详细地址</em></li>
                    <li><span class="addTit"><i class="xing">*</i>手机：</span><input class="addFrom f1 recePhone" type="text" id="new_phone" maxlength="11" /></li>
                    <li class="btnBox"><a href="#" class="addSubmit" onclick="" id="AddorEdit">确定</a></li>
                </ul>
            </div>
            <script>
                function Consignees_Add()
                {
                    var ConsigneeName=$("#ConsigneeName1").val();
                    var AreaID=$("#new_county").val();
                    var ConsigneeAddr=$("#new_detail").val();
                    var ConsigneeTel=$("#new_phone").val();
                    $.ajax({
                        type:"post",
                        url:"/Home/Consignees_Add",
                        data:{
                            ConsigneeName:ConsigneeName,
                            AreaID:AreaID,
                            ConsigneeAddr:ConsigneeAddr,
                            ConsigneeTel:ConsigneeTel,
                            UsersID:Uid
                        },
                        success:function(dd){
                            if(dd>0)
                            {
                                alert("添加成功");
                                location.href="/Home/Indent/"+Uid;
                            }
                        }
                    })
                }
                function AreasSelect(Area,ArID)
                {
                    var Upper;
                    $.ajax({
                        type:"post",
                        url:"/Home/AreasSelect",
                        data:{Aid:ArID},
                        cache:false,
                        success:function(dd)
                        {
                            $(dd).each(function(i,item){
                                var str='<option value="'+item.AreaID+'">'+item.AreaName+'</option>';
                                $(Area).append(str);
                                Upper=item.UpperStory;
                            })
                            if($(Area).attr("id")=="new_county")
                            {
                                $(Area).val(ArID);
                                AreasSelect($("#new_city"),Upper);
                            }
                            if($(Area).attr("id")=="new_city")
                            {
                                $(Area).val(ArID);
                                AreasSelect($("#new_province"),Upper);
                            }
                            if($(Area).attr("id")=="new_province")
                            {
                                $(Area).val(ArID);
                            }
                        }
                    })
                }
                function Areas(ArID)
                {
                    $("#new_city").empty();
                    $("#new_province").empty();
                    $("#new_county").empty();
                    AreasSelect($("#new_county"),ArID);
                }
                function Consignees_Edit(Cid)
                {
                    $("#AddorEdit").attr("onclick","Consignees_update("+Cid+")");
                    $(".addresPopBox").css("display", "block");
                    $(".popMask").css("display", "block")
                    $.ajax({
                        type:"post",
                        url:"/Home/ConsigneeSelect",
                        data:{
                            UsersID:Uid,
                            Cid:Cid
                        },
                        success:function(dd)
                        {
                            $("#ConsigneeName1").val(dd["ConsigneeName"]);
                            Areas(dd["AreaID"]);
                            $("#new_detail").val(dd["ConsigneeAddr"]);
                            $("#new_phone").val(dd["ConsigneeTel"]);
                        }
                    })
                }
                function Consignees_update(Cid)
                {
                    var ConsigneeName=$("#ConsigneeName1").val();
                    var AreaID=$("#new_county").val();
                    var ConsigneeAddr=$("#new_detail").val();
                    var ConsigneeTel=$("#new_phone").val();
                    var ConsigneeID=Cid;
                    $.ajax({
                        type:"post",
                        url:"/Home/Consignees_Edit",
                        data:{
                            ConsigneeName:ConsigneeName,
                            AreaID:AreaID,
                            ConsigneeAddr:ConsigneeAddr,
                            ConsigneeTel:ConsigneeTel,
                            ConsigneeID:ConsigneeID
                        },
                        success:function(dd){
                            if(dd>0)
                            {
                                alert("修改成功");
                                location.href="/Home/Indent/"+Uid;
                            }
                        }
                    })
                }
                $(function(){
                    $.ajax({
                        type:"post",
                        url:"/Home/AreasShow",
                        data:{UpperStory:0},
                        success:function(dd)
                        {
                            $(dd).each(function(i,item){
                                var str='<option value="'+item.AreaID+'">'+item.AreaName+'</option>';
                                $("#new_province").append(str);
                            })
                            AreasClick($("#new_province").val(),$("#new_province").attr("id"));
                        }
                    })
                })
                $("#new_province").click(function(){
                    $("#new_province").next().empty();
                    $("#new_province").next().next().empty();
                    AreasClick($(this).val(),$(this).attr("id"));
                })
                $("#new_city").click(function(){
                    $("#new_city").next().empty();
                    AreasClick($(this).val(),$(this).attr("id"));
                })
                function AreasClick(ss,name)
                {
                    $.ajax({
                        type:"post",
                        url:"/Home/AreasShow",
                        data:{UpperStory:ss},
                        success:function(dd)
                        {
                            $(dd).each(function(i,item){
                                var str='<option value="'+item.AreaID+'">'+item.AreaName+'</option>';
                                $("#"+name).next().append(str);
                            })
                            if(name=="new_province")
                            {
                                AreasClick($("#"+name).next().val(),$("#"+name).next().attr("id"));
                            }

                        }
                    })
                }
            </script>
        </div>
    </div>
    <div class="popMask" style="height: 923px;"></div>
    <!--页脚-->
    <div class="footer">
        <div class="footerTopBox">
            <div class="footerTop">
                <div class="footerContact"><i class="publicIcon"></i><b>040111354</b><span>客服热线</span><span>8:00-23:00</span><span>贴心服务</span></div>
                <div class="footerTopRight"><div class="ftRight-tit">优惠促销早知道</div><div class="ftRight-form"><input id="subscribe_email" type="text" value="" name="" /><span>请输入您的邮箱地址</span><i class="publicIcon" id="subscribe_but"></i></div></div>
            </div>
            <div class="footerServices">
                <ul class="clearfix">
                    <li class="servicesItme01">
                        <h3><i class="publicIcon"></i><span>新手入门</span></h3>
                        <p><a href="#" target="_blank" rel="nofollow">购物保障</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">服务协议</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">发票说明</a></p>
                    </li>
                    <li class="servicesItme02">
                        <h3><i class="publicIcon"></i><span>常见问题</span></h3>
                        <p><a href="#" target="_blank" rel="nofollow">红包使用</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">返现使用</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">兑换码</a></p>
                    </li>
                    <li class="servicesItme03">
                        <h3><i class="publicIcon"></i><span>配送说明</span></h3>
                        <p><a href="#" target="_blank" rel="nofollow">配送时间</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">配送费用</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">配送范围</a></p>
                    </li>
                    <li class="servicesItme04">
                        <h3><i class="publicIcon"></i><span>支付方式</span></h3>
                        <p><a href="#" target="_blank" rel="nofollow">货到付款</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">在线支付</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">线下支付</a></p>
                    </li>
                    <li class="servicesItme05">
                        <h3><i class="publicIcon"></i><span>售后服务</span></h3>
                        <p><a href="#" target="_blank" rel="nofollow">品质保证</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">退换货政策</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">退换货流程</a></p>
                    </li>
                    <li class="servicesItme06">
                        <h3><i class="publicIcon"></i><span>特色服务</span></h3>
                        <p><a href="#" target="_blank">会员俱乐部</a></p>
                        <p><a href="#" target="_blank" rel="nofollow">企业客户</a></p>
                        <p><a target="_blank" href="#">酒帝社区</a></p>
                    </li>
                    <li class="jxMicroblogging">
                        <div class="item sinaMb"><div class="sinaMbCom clearfix"><a href="?#" target="_blank" rel="nofollow"><i class="publicIcon"></i></a><a href="#" target="_blank" rel="nofollow">酒帝新浪微博</a></div></div>
                        <div class="item weixin"><div class="weixinCon clearfix"><i class="publicIcon"></i><a id="jxWeixin" falg="hide" href="#" target="_blank" rel="nofollow">酒帝微信</a></div><div class="weixinCode" id="weixinCode"><img src="~/img/Index_img/weixin-code.jpg" /></div></div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="footerBotBox">
            <div class="footerBot clearfix">
                <div class="footerBotLeft">
                    <p class="footerInfo">
                        <a href="#" target="_blank" rel="nofollow">公司简介<i></i></a>
                        <a href="#" target="_blank" rel="nofollow">管理团队<i></i></a>
                        <a href="#" target="_blank" rel="nofollow">媒体报道<i></i></a>
                        <a href="#" target="_blank" rel="nofollow">联系我们<i></i></a>
                        <a href="#" target="_blank" rel="nofollow">招贤纳士<i></i></a>
                        <a href="#" target="_blank">网站地图<i></i></a>
                        <a href="#" target="_blank">品牌大全<i></i></a>
                    </p>
                    <p class="copyright">酒帝网电子商务股份有限公司&nbsp;&nbsp;©&nbsp;&nbsp;酒帝网&nbsp;&nbsp;&nbsp;2011&nbsp;&nbsp;jiuxian.com&nbsp;&nbsp;All&nbsp;&nbsp;&nbsp;Rights&nbsp;Reserved&nbsp;&nbsp;&nbsp;<a href="#" target="_blank" rel="nofollow">京ICP备11007961号-1</a>&nbsp;&nbsp;&nbsp;京公网安备1101050188221</p>
                    <p class="footerAddr" style="color:#999; line-height:22px; padding-top:5px;"><span>统一社会信用代码&nbsp;&nbsp;91110302554833311D&nbsp;&nbsp;&nbsp;食品流通许可证编号&nbsp;&nbsp;SP1103021310005747&nbsp;&nbsp;&nbsp;</span></p>
                    <p class="footerAddr" style="color:#999; line-height:22px; padding-bottom:7px;"><span>地址：北京市北京经济技术开发区经海五路58号院8号楼1至6层</span></p>
                    <p class="copybot">
                        <a href="#" target="_blank" rel="nofollow"><img src="~/img/Index_img/copyBot03.jpg" width="128" height="47" /></a><a href="#" target="_blank" rel="nofollow"><img src="~/img/Index_img/copyBot04.jpg" width="128" height="47" /></a><a href="#" target="_blank" rel="nofollow"><img src="~/img/Index_img/copyBot05.jpg" width="128" height="47" /></a>
                    </p>
                    <p class="footerPro" style="padding:8px 0 6px;">购买前请确认达到法定饮酒年龄！酒帝网不销售任何含酒精产品给18岁以下人士！</p>
                </div>
                <div class="footerBotCode">
                    <div class="jxPho-code"><p class="codePic"><img alt="手机酒帝网" src="~/img/Index_img/jxPho-code(1).jpg" width="80" height="80" /></p><p class="codeText">手机酒帝网</p></div>
                </div>
            </div>
        </div>
    </div><iframe src="~/img/Indent_img/_cm.html" id="emar_box_pv" style="width: 1px; border: 0px; position: absolute; left: -100px; top: -100px; height: 1px;"></iframe>
    <style type="text/css">
        .footerBotLeft .footerInfo {
            margin-left: -8px;
        }

        .footerBotLeft p {
            font-family: Arial,Helvetica,sans-serif,"宋体";
        }

        .footerBotLeft .footerInfo a {
            color: #666;
        }

        .footerBotLeft .copyright {
            color: #666;
        }
    </style>
    <!--页脚end-->
    <div class="pop-modal"></div><div class="pop-wrap pop-wrap1"><div class="pop-layer"><div class="pop-title"><p class="alertTitle">提示</p><i class="popIcon alertClose"></i></div><div class="pop-main"><i class="popIcon popType success"></i><i class="popIcon popType fail"></i><i class="popIcon popType alarm"></i><i class="popIcon popType confirm"></i><p><span class="alertContent">操作成功</span><em></em></p></div><div class="pop-bottom"><span class="confirm alertSure"><b>确定</b></span><span class="cancel alertCancel"><b>取消</b></span></div></div></div>
</body>
</html>
